package com.example.stock.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;

import java.io.Serializable;
import java.util.List;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Transient;

/**
 * 货单信息
 */
@Entity
public class GoodsOrderBean implements Serializable {
    public static final long serialVersionUID = -15515456L;

    @Id(autoincrement = true)
    private Long id;

    @Index(unique = true)//设置唯一性
    private String djh; // 到货单号

    private String dhrq; //到货日期

    private String gysCode;// 供应商编码

    private String gysName;// 供应商名称

    private String memo;//到货事项说明

    private int isUpload = 0; // 是否上传

    @Transient
    private String kgyCode;//用户编码

    private String billType;// 到货单号类型

    private String billTypeName;// 到货单号类型名称

    @Transient
    private List<GoodsData> dataList;

    @Generated(hash = 2144399974)
    public GoodsOrderBean(Long id, String djh, String dhrq, String gysCode,
            String gysName, String memo, int isUpload, String billType,
            String billTypeName) {
        this.id = id;
        this.djh = djh;
        this.dhrq = dhrq;
        this.gysCode = gysCode;
        this.gysName = gysName;
        this.memo = memo;
        this.isUpload = isUpload;
        this.billType = billType;
        this.billTypeName = billTypeName;
    }

    @Generated(hash = 529037008)
    public GoodsOrderBean() {
    }

    public void setDjh(String djh) {
        this.djh = djh;
    }

    public String getDjh() {
        return djh;
    }

    public void setDhrq(String dhrq) {
        this.dhrq = dhrq;
    }

    public String getDhrq() {
        return dhrq;
    }

    public void setGysCode(String gysCode) {
        this.gysCode = gysCode;
    }

    public String getGysCode() {
        return gysCode;
    }

    public void setGysName(String gysName) {
        this.gysName = gysName;
    }

    public String getGysName() {
        return gysName;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getMemo() {
        return memo;
    }

    public int getIsUpload() {
        return isUpload;
    }

    public void setIsUpload(int isUpload) {
        this.isUpload = isUpload;
    }

    public List<GoodsData> getDataList() {
        return dataList;
    }

    public void setDataList(List<GoodsData> dataList) {
        this.dataList = dataList;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getKgyCode() {
        return kgyCode;
    }

    public void setKgyCode(String kgyCode) {
        this.kgyCode = kgyCode;
    }

    public String getBillType() {
        return this.billType;
    }

    public void setBillType(String billType) {
        this.billType = billType;
    }

    public String getBillTypeName() {
        return this.billTypeName;
    }

    public void setBillTypeName(String billTypeName) {
        this.billTypeName = billTypeName;
    }

    @Override
    public String toString() {
        return "GoodsOrderBean{" +
                "id=" + id +
                ", djh='" + djh + '\'' +
                ", dhrq='" + dhrq + '\'' +
                ", gysCode='" + gysCode + '\'' +
                ", gysName='" + gysName + '\'' +
                ", memo='" + memo + '\'' +
                ", isUpload=" + isUpload +
                ", kgyCode='" + kgyCode + '\'' +
                ", billType='" + billType + '\'' +
                ", billTypeName='" + billTypeName + '\'' +
                ", dataList=" + dataList +
                '}';
    }
}
